<include file="Public/header" />
<title>添加账册</title>
</head>
<body>
<div class="pd-20">
<form class="" name="form" id="form" action="__URL__/add_ems/" method="post">
	<table class="table table-border table-bordered table-bg">
		<tbody>
		<tbody>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">公司名称</td>
				<td class="text-l" width="35%">
					<input type="text" name="name" class="input-text" value="" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">公司编号</td>
				<td class="text-l">
					<input type="text" name="code" class="input-text" value="">
				</td>				
			</tr>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">域名URL</td>
				<td class="text-l" width="35%">
					<input type="text" name="url" class="input-text" value="" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">备注</td>
				<td class="text-l">
					<input type="text" name="text" class="input-text" value="" >
				</td>				
			</tr>
		</tbody>
		</tbody>
	</table>
	<input type="button" class="btn btn-primary radius mt" id="b_add" value="添加">
</form>
</div>
<script type="text/javascript">
    $(function(){
		/*保存计划入库单数据*/
        $("#b_add").click(function(){
			$.ajax({
                type: 'POST',
                data: $("#form").serialize(),
                url: "<{:U('add_ems')}>",
                success:function(data){
                    layer.msg(data.message,function(){
						if(data.status==0){
							return false;
						}
						parent.window.location.href =parent.window.location.href;
					});
                }
            })
            
        });

    })
</script>
</body>
</html>